<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta content="IE=9" http-equiv="x-ua-compatible">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="parentId" name="parentId" type="hidden"
								   th:value="${pId}">

							<input id="mineLevel" name="mineLevel" type="hidden"
								   th:value="${mineLevel}">
							<div class="form-group">
								<label class="col-sm-3 control-label">商品大类：</label>
								<div class="col-sm-8">
									<input id="" name="" class="form-control" type="text"
										   th:value="${pName}" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">分类类型：</label>
								<div class="col-sm-8">
									<label class="radio-inline" id="max" >
										<input type="radio"  id="maxLevel" name="level" value="0"  /> 一级类
									</label>
									<label class="radio-inline" id="small" >
										<input type="radio" id="smalLevel" name="level" value="1" /> 二级类
									</label>
									<!-- <label class="radio-inline" id="smallTwo" >
										<input type="radio" id="smalLevelTwo" name="level" value="2" /> 三级类
									</label> -->
								</div>
							</div>
							<div class="form-group">	
								<label class="col-sm-3 control-label">分类名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" class="form-control" type="text" maxlength="30">
								</div>
							</div>
							<!--<div class="form-group" th:if="${mineLevel eq 0}">
								<label class="col-sm-3 control-label">图标：</label>
								<div class="col-sm-8">
									&lt;!&ndash;<input id="imgurl" name="imgurl" class="form-control" type="text">&ndash;&gt;
									&lt;!&ndash;<button type="button" class="layui-btn" id="imgurl">&ndash;&gt;
									&lt;!&ndash;<i class="fa fa-cloud"></i>上传文件&ndash;&gt;
									&lt;!&ndash;</button>&ndash;&gt;
									<div id="file_upload_a">
										&lt;!&ndash;<input id="file_upload" name="file_upload"  multiple="false">&ndash;&gt;
									</div>
									<div id="imgurl_a" style="padding: 5px;"></div>
									<input type="hidden" id="imgA" name="imgA">
								</div>
							</div>-->
							<div class="form-group" th:if="${mineLevel eq 0}">
								<label class="col-sm-3 control-label">广告图片：</label>
								<div class="col-sm-8">
									<!--<input id="imgurl" name="imgurl" class="form-control" type="text">-->
									<!--<button type="button" class="layui-btn" id="imgurl">-->
									<!--<i class="fa fa-cloud"></i>上传文件-->
									<!--</button>-->
									<div id="file_upload_a">
										<!--<input id="file_upload" name="file_upload"  multiple="false">-->
									</div>
									<div id="imgurl_a" style="padding: 5px;"></div>
									<input type="hidden" id="imgA" name="imgA">
								</div>
							</div>
							<!--<div class="form-group" th:if="${pName eq '根目录'}">
								<label class="col-sm-3 control-label">分类图标（未点击）：</label>
								<div class="col-sm-8">
									&lt;!&ndash;<input id="imgurl" name="imgurl" class="form-control" type="text">&ndash;&gt;
									&lt;!&ndash;<button type="button" class="layui-btn" id="imgurl">&ndash;&gt;
									&lt;!&ndash;<i class="fa fa-cloud"></i>上传文件&ndash;&gt;
									&lt;!&ndash;</button>&ndash;&gt;
									<div id="file_upload_b">
										&lt;!&ndash;<input id="file_upload" name="file_upload"  multiple="false">&ndash;&gt;
									</div>
									<div id="imgurl_b" style="padding: 5px;"></div>
									<input type="hidden" id="imgB" name="imgB">
								</div>
							</div>
							<div class="form-group" th:if="${pName eq '根目录'}">
								<label class="col-sm-3 control-label">分类图标（点击）：</label>
								<div class="col-sm-8">
									&lt;!&ndash;<input id="imgurl" name="imgurl" class="form-control" type="text">&ndash;&gt;
									&lt;!&ndash;<button type="button" class="layui-btn" id="imgurl">&ndash;&gt;
									&lt;!&ndash;<i class="fa fa-cloud"></i>上传文件&ndash;&gt;
									&lt;!&ndash;</button>&ndash;&gt;
									<div id="file_upload_c">
										&lt;!&ndash;<input id="file_upload" name="file_upload"  multiple="false">&ndash;&gt;
									</div>
									<div id="imgurl_c" style="padding: 5px;"></div>
									<input type="hidden" id="imgC" name="imgC">
								</div>
							</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">商品类型：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="typeId" name="typeId" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<div class="form-group">	
								<label class="col-sm-3 control-label">是否显示：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
															checked		name="show" value="0" /> 显示
									</label> <label class="radio-inline"> <input type="radio"
																				 name="show" value="1" /> 隐藏
								</label>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">排序(从小到大)：</label>
								<div class="col-sm-8">
									<input id="location" name="location" class="form-control" type="number">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script src="/js/layui.js"></script>
	<script type="text/javascript" src="/js/appjs/wx/goodsClass/add.js">
	</script>
</body>
</html>
